package com.wzxl.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author rxbyes
 * @version V1.0
 * @package com.wzxl.bean.sys
 * @description: TODO (  )
 * @date 2017 下午11:24
 */

@Data
public class Role extends BaseEntity {

    @Id
    @Column(name = "role_id")
    @GeneratedValue(generator = "UUID")
    private String roleId;

    @NotEmpty(message = "角色名称不能为空")
    private String roleName;

    private String roleDesc;

    @Column(columnDefinition = "enum(1,0)")
    private Integer enable;

    private String createdAt;

    private String updatedAt;

    @Transient
    @JsonIgnore
    private String sort = "";

    @Transient
    @JsonIgnore
    private String order = "";

}
